﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;

namespace shop.Model
{
    /// <summary> 货品价格记录 </summary>
    public class GoodsPrice
    {
        [Column(IsPrimary =true, IsIdentity =true)]
        public int id { get; set; }


        public DateTime? BeginDate { set; get; }

        public DateTime? EndDate { set; get; }

        /// <summary> 仓库 </summary>
        [Column(StringLength =100)]
        public string Stock {  get; set; }



        /// <summary> 商家编码 </summary>
        [Column(StringLength = 50)]
        public string spec_no { set; get; }



        /// <summary> 货品编号 </summary>
        [Column(StringLength = 50)]
        public string goods_no { set; get; }


         

        /// <summary> 来源组合装编码 </summary>
        [Column(StringLength = 100 )]
        public string suite_no { set; get; }



        /// <summary> 长 </summary>
        [Column(Precision =10, Scale =5)]
        public decimal Flength { get; set; }

        /// <summary> 宽 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Width { get; set; }


        /// <summary> 高 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Height { get; set; }


        /// <summary> 体积 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Volume { set; get; }

        /// <summary> 重量 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal FWeight { get; set; }



        /// <summary> 最小数量 </summary>
        public int MinQty { get; set; }


        /// <summary> 最大数量 </summary>
        public int MaxQty { get; set; }


        /// <summary> 成本单价 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal Price { get; set; }


        /// <summary> 成本单价 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal FenxiaoPrice { get; set; }


        /// <summary> 代发的运费 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal PostPrice { get; set; }


        /// <summary> 指定快递 代发的运费1  </summary>
        [Column(StringLength =100)]
        public string PostLogi1 { get; set; }

        /// <summary> 指定快递 代发的运费1  </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal PostPrice1 { get; set; }



        /// <summary> 指定快递 代发的运费2  </summary>
        [Column(StringLength = 100)]
        public string PostLogi2 { get; set; }


        /// <summary> 指定快递 代发的运费2 </summary>
        [Column(Precision = 10, Scale = 5)]
        public decimal PostPrice2 { get; set; }



        /// <summary> 数量倍数 </summary>
        public int QtyTimes { set; get; }

        /// <summary> 产品负责人 </summary>
        [Column(StringLength =50)]
        public string Person { set; get; }



        /// <summary> 运营负责人 </summary>
        [Column(StringLength = 50)]
        public string Operator { set; get; }


        /// <summary> 备注 </summary>
        [Column(StringLength = 500)]
        public string Remarks { set; get; }

        /// <summary> 制单人 </summary>
        [Column(StringLength =50)]
        public string FUser { set; get; } 


        public bool isdel { set; get; }

        public DateTime FTime { set; get; }

        public GoodsPrice Clone()
        {
            return this.MemberwiseClone() as GoodsPrice;
        }

        /// <summary> 导入数据的批次 </summary>
        [Column(StringLength = 100)]
        public string batch {  set; get; }  
    }
}
